/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.lihle.designpatterns.app;

import com.lihle.designpatterns.model.behavioral.state.impl.HappyState;
import com.lihle.designpatterns.model.behavioral.state.impl.Person;
import com.lihle.designpatterns.model.behavioral.state.impl.SadState;

/**
 *
 * @author user
 */
public class StateAppFactory {

    public static Person getPersonSadState(HappyState happyState) {
        happyState = new HappyState();
        Person person = new Person(happyState);
        return person;
    }
    public static Person getPersonSadState(SadState sadState) {

        Person person = new Person(sadState);
        return person;
    }
    public static HappyState getHappyState() {

        HappyState h = new HappyState();
        return h;
    }

    public static SadState getSadState() {
        SadState h = new SadState();
        return h;
    }
}
